
import { HashRouter, Routes, Route, Navigate } from 'react-router-dom';
import Home from 'pages/Home';
import zhCN from 'antd/lib/locale/zh_CN';
import { ConfigProvider } from 'antd';

export default function App() {
  return (
    <ConfigProvider locale={zhCN}>
      <HashRouter>
        <Routes>
          <Route path='/home' element={<Home />} />
          <Route path="*" element={<Navigate to="/home" />} />
        </Routes>
      </HashRouter>
    </ConfigProvider>
  );
}
